package com.dongge.tag;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.SimpleTagSupport;
import java.io.IOException;

/**
 * Created by zhudong on 2016/6/26.
 */
public class Hello extends SimpleTagSupport{

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void doTag() throws JspException, IOException {
//        super.doTag();
        JspWriter writer = this.getJspContext().getOut();
//        writer.write("Hello Tag by Zeus");
        writer.write("Hello:"+name);
    }
}
